module.exports = {
  head: {
    title: 'fir',
    htmlAttrs: {
      lang: 'en'
    },
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '' },
      { name: 'format-detection', content: 'telephone=no' }
    ],
    link: [
      // { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ],
    css: [
      // 'element-plus/dist/index.css',
    ],
    script: [
      //   { hid: 'selfjs111', src: 'xxxxxx.js', type: 'text/javascript'}
    ],
    router: {
      middleware: 'my-middleware-test' // my-middleware-test将在每一个路由改变时调用
    },
    modules: [
      '@nuxtjs/axios',
      '@nuxtjs/proxy'
    ],
    axios: {
      proxy: true,
    },
    proxy: {
      '/api': {
        target: 'http://localhost:9999', // 你的接口服务器地址，以我自己的项目
        pathRewrite: {
          '^/api': '/'
        }
      }
    }
  }
}

